/**
 * 
 */
package cn.com.xf.service;

import java.util.List;
import java.util.Map;

import cn.com.xf.domain.BatDstarea;
import cn.com.xf.domain.TbAppAreas;
import cn.com.xf.domain.TbAppAuditingAreas;
import cn.com.xf.domain.Tbareainfo;
import cn.com.xf.domain.TblOaAreaCoordinate;
import cn.com.xf.domain.TblOaAuthRole;
import cn.com.xf.domain.VDstarea;
import cn.com.xf.web.form.AreaForm;
import cn.com.xf.web.form.AreaMapForm;

/**
 * @author Administrator
 * 
 */
public interface AreaService {
	/**
	 * 查找
	 * 
	 * @param begin
	 * @param pageSize
	 * @param orderByField
	 * @param orderByMode
	 * @param siteId
	 * @param siteName
	 * @param markId
	 * @param markName
	 * @param areaId
	 * @param areaName
	 * @return
	 */
	List<BatDstarea> selectBatDstarea(int begin, int pageSize, String orderByField, String orderByMode, String siteId,
			String siteName, String markId, String markName, String areaId, String areaName);

	/**
	 * 统计
	 * 
	 * @param filed
	 * @param value
	 * @return
	 */
	int selectBatDstareaCount(String siteId, String siteName, String markId, String markName, String areaId,
			String areaName);

	BatDstarea selectByFldidd(String fldidd);

	VDstarea selectVDstareaByFldidd(String fldidd);

	List<Tbareainfo> selectTbareainfoListByAreaName(String areaName);

	int updateBatDstarea(AreaForm form);

	int insertBatDstarea(AreaForm form);

	int selectBatDstareaCountByOfAreaId(String ofAreaId);

	TblOaAreaCoordinate selectTblOaAreaCoordinateByAreaId(String areaId);

	int insertOrUpdateAreaCoordinate(String areaId, String x, String y);

	Tbareainfo selectAreainfoByAreaId(String areaID);

	void deleteArea(String areaId, String fldidd);
	
	TbAppAreas selectByMapid(String areaid);
	
	int insertMap(AreaMapForm form);
	
	int updateMap(AreaMapForm form);
	
	int delMap(String areaid);
	
	List<TbAppAreas> selectMap(int begin, int pageSize, String orderByField, String orderByMode,String siteid,String areaname,String province,String city);
	
	List<TbAppAreas> selectMapByCity(String city,String id);
	
	List<TbAppAreas> selectLngLat(String city);
	
	int selectMapCount(String siteid,String areaname,String province,String city);
	
	List<BatDstarea> selectByAreaname(Map<String,String> map);

	int auditingMap(AreaMapForm form);

	TbAppAuditingAreas selectByAuditingMapid(String areaid);

	List<TbAppAuditingAreas> selectMapAuditing(int begin, int pageSize, String orderByField, String orderByMode,
			String siteid, String areaname);

	int selectMapCountAuditing(String siteid, String areaname);

	int delAuditingMap(String areaid);

	TblOaAuthRole selectRoleIdByRoleDesc(String roleDesc);

	int checkedMapByAreaid(String areaid);

	int updateAuditing(AreaMapForm form);

	int checkMap_1(String areaid);

	int checkMap_0(String areaid);

	String selectOfSiteByAreaname(String areaname);

	int updateCheckDate(AreaMapForm form);

	String selectAreaIdByAreaName(String areaName);
	
	


}
